#ifndef OutPower_H
#define OutPower_H

#define POWEROFFSEC 100
#define WAKEUPTIMES 7

#ifdef OutPower_Variable
#define OutPower_Extern

#else
#define OutPower_Extern extern
#endif

OutPower_Extern U8 CommJudgeTime;

OutPower_Extern U8 WakeUpSec;

OutPower_Extern U8 ReOutPowerSec;
OutPower_Extern U8 ReOutPowerMin;
OutPower_Extern U8 ReOutPowerHour;

OutPower_Extern U8 OutPowerToOffSec;
OutPower_Extern U8 TurnOffCount;
OutPower_Extern U8 OutPowerOffSec;

OutPower_Extern U8 FanVDC10S;
OutPower_Extern U8 FanVcc70S;

OutPower_Extern ram_byte V7modeFlag1_u;
#define f_NeedOutPower V7modeFlag1_u.bit.b0
#define f_CommToOffEnd V7modeFlag1_u.bit.b1
#define f_CommToOff V7modeFlag1_u.bit.b2
#define f_CommRstEnd V7modeFlag1_u.bit.b4
#define f_OutPowerToOff V7modeFlag1_u.bit.b5

OutPower_Extern ram_byte V7modeFlag2_u;
#define f_Health V7modeFlag2_u.bit.b0
#define f_Power V7modeFlag2_u.bit.b1
#define f_Heater V7modeFlag2_u.bit.b2
#define f_Humidifier V7modeFlag2_u.bit.b3

void OutPowerAct(void);
void OutPowerTime(void);
void TimerWakeUp(void);
void RelayAct(void);
#endif
